Enum isotope_parser::prettyprint::Doc [−]
Expand description
The concrete document type. This type is not meant to be used directly. Instead use the static
functions on Doc
or the methods on an DocAllocator
.
The T
parameter is used to abstract over pointers to Doc
. See RefDoc
and BoxDoc
for how
it is used
Variants
Nest(isize, T)
BorrowedText(&'a str)
SmallText(ArrayString<[u8; 22]>)
Implementations
Writes a rendered document to a std::io::Write
object.
Writes a rendered document to a std::fmt::Write
object.
pub fn render_raw<W>(
&self,
width: usize,
out: &mut W
) -> Result<(), <W as Render>::Error> where
W: for<'b> RenderAnnotated<'b, A> + ?Sized,
pub fn render_raw<W>(
&self,
width: usize,
out: &mut W
) -> Result<(), <W as Render>::Error> where
W: for<'b> RenderAnnotated<'b, A> + ?Sized,
Writes a rendered document to a RenderAnnotated<A>
object.
The text t.to_string()
.
The given text must not contain line breaks.
The given text, which must not contain line breaks.
Trait Implementations
Auto Trait Implementations
impl<'a, T, A> RefUnwindSafe for Doc<'a, T, A> where
A: RefUnwindSafe,
T: RefUnwindSafe,
<T as DocPtr<'a, A>>::ColumnFn: RefUnwindSafe,
impl<'a, T, A> Unpin for Doc<'a, T, A> where
A: Unpin,
T: Unpin,
<T as DocPtr<'a, A>>::ColumnFn: Unpin,
impl<'a, T, A> UnwindSafe for Doc<'a, T, A> where
A: UnwindSafe,
T: UnwindSafe,
<T as DocPtr<'a, A>>::ColumnFn: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more